package com.sais.manage.boot.building.exception;

import org.springframework.util.StringUtils;

/**
 * 宿舍管理平台-宿舍楼管理异常
 *
 * @author zwp
 * @date 2020/1/30
 */
public class BuildingException extends RuntimeException {

    public static final String FACULTY_TYPE = "当前类型为院系，不能直接删除！";
    public static final String BUILDING_NULL = "未选择为哪栋楼创建房间，请选择宿舍楼！";
    public static final String ROOM_LAY = "宿舍楼层必须在1~99之间！";
    public static final String ROOM_NUM = "房间数必须在1-20之间！";
    public static final String ROOM_NOT_NULL = "房间还有学生居住，不能删除！";
    public static final String USER_GENDER_NULL = "请先完善个人信息！";




    public BuildingException() {
        super("参数异常");
    }

    public BuildingException(String message) {
        super(StringUtils.isEmpty(message) ? "参数异常" : message);
    }
}
